<template>
  <Panel position="top-right">
    <div class="buttons">
      <button title="save graph" @click="onSave">
        <Icon name="save" />
      </button>
      <!--
      <button title="restore graph" @click="onRestore">
        <Icon name="restore" />
      </button>
      -->
    </div>
  </Panel>
</template>

<script setup>
import { defineEmits } from 'vue';
import { Panel, useVueFlow } from '@vue-flow/core';
import Icon from './icons.vue';

const emits = defineEmits(['save']);

function onSave() {
  emits('save');
}
</script>
